package com.zl_huang.example.dao;

import java.util.List;

import com.zl_huang.example.model.Subject;


public interface ISubjectDaoHibernate extends IBaseDao<Subject> {
	public Integer createSubject(Subject subject)throws Exception;
	public Integer editSubject(Subject subject)throws Exception;
	public Integer deleteSubject(int sub_id)throws Exception;
	public List<Subject> findAllSubject()throws Exception;
	public Subject getSubjectById(int sub_id) throws Exception;
	public List<String> getAllUserBySubId(Integer sub_id)throws Exception;
	public void insertSubjectUsers(List<String> insertList, Integer sub_id)throws Exception;
	public void deleteSubjectUsers(List<String> delList, Integer sub_id)throws Exception;
	public List<Subject> getAllSubjectByUserId(String user_id)throws Exception;

}
